package www.xudan.android_ffmpeg.videoplayer.widget.status;

import android.view.View;

import www.xudan.android_ffmpeg.R;
import www.xudan.android_ffmpeg.videoplayer.widget.BasePlayerView;


public class BackPauseStatus extends PauseStatus {
    public BackPauseStatus(BasePlayerView view) {
        super(view);
    }

    public void restoreFromPlayerView() {
        view.iv_screen_play.setImageResource(R.drawable.screen_play);
        view.iv_screen_play.setVisibility(View.VISIBLE);
        view.seek_play.setImageResource(R.drawable.play);
        view.player.pause();
        view.setStatus(view.pause);
    }

    @Override
    public void copyStatusToChild(BasePlayerView view) {
        view.setStatus(view.backPause);
    }

    @Override
    public void onStart() {
        super.onStart();
        view.setStatus(view.pause);
    }
}
